package com.ruoyi.project.system.domain;

import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.web.domain.BaseEntity;

import java.util.Map;

/**
 * 【请填写功能名称】对象 sys_goods_product
 *
 * @author theme
 * @date 2020-06-23
 */
public class SysGoodsProduct extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    @ApiModelProperty(name = "${comment}")
    private Long productId;

    /**
     * 商品表的商品ID
     */
    @ApiModelProperty(name = "商品表的商品ID")
    private Long goodsId;

    /**
     * 商品规格值列表，采用json数组格式
     */
    @ApiModelProperty(name = "商品规格值列表，采用json数组格式")
    private String[] specifications;

    /**
     * 商品货品数量
     */
    @ApiModelProperty(name = "商品货品数量")
    private Long number;

    /**
     * 商品货品价格
     */
    @ApiModelProperty(name = "商品货品价格")
    private Double price;

    @ApiModelProperty(name = "积分")
    private Double integral;

    /**
     * $column.columnComment
     */
    private String delFlag;

    public Double getIntegral() {
        return integral;
    }

    public void setIntegral(Double integral) {
        this.integral = integral;
    }

    public void setProductId(Long productId) {
        this.productId = productId;
    }

    public Long getProductId() {
        return productId;
    }

    public void setGoodsId(Long goodsId) {
        this.goodsId = goodsId;
    }

    public Long getGoodsId() {
        return goodsId;
    }

    public String[] getSpecifications() {
        return specifications;
    }

    public void setSpecifications(String[] specifications) {
        this.specifications = specifications;
    }

    public void setNumber(Long number) {
        this.number = number;
    }

    public Long getNumber() {
        return number;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public String getDelFlag() {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("productId", getProductId())
                .append("goodsId", getGoodsId())
                .append("specifications", getSpecifications())
                .append("number", getNumber())
                .append("price", getPrice())
                .append("delFlag", getDelFlag())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}
